package com.powernode.boss.models.request;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class OperatorLoginRequest {
    //属性声明验证规则
    @NotNull(message = "登录名不能为空")
    @Size(min = 3,max =20,message = "登录名在{min}到{max}个字符")
    private String loginName;
    @NotNull(message = "密码不能为空")
    @Size(min = 32,max =32,message = "密码在{min}到{max}个字符")
    private String loginPwd;

}
